-- GENERATED SPELL FOR [Firewalker] --


function spell0_11666(pUnit, Event) --@Fire Blossom,Self--
pUnit:FullCastSpellOnTarget(19636,pUnit)
pUnit:RegisterEvent('Sorts_11666', 6000, 1)
end

function spell1_11666(pUnit, Event) --@Incite Flames,Self--
pUnit:FullCastSpellOnTarget(19635,pUnit)
pUnit:RegisterEvent('Sorts_11666', 623, 1)
end

function Sorts_11666(pUnit, Event)
local choix_sorts_11666 = math.random(0, 1)
if choix_sorts_11666 == 0 then
pUnit:RegisterEvent('spell0_11666', 1, 1)
end
if choix_sorts_11666 == 1 then
pUnit:RegisterEvent('spell1_11666', 1, 1)
end
end

function mob11666_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11666', math.random(1500, 3000), 1)
end

function mob11666_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11666_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11666_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11666, 1, 'mob11666_Action')
RegisterUnitEvent(11666, 2, 'mob11666_Leave')
RegisterUnitEvent(11666, 3, 'mob11666_Kill')
RegisterUnitEvent(11666, 4, 'mob11666_Die')
